package com.liu.mapper;

import com.liu.controller.dto.PasswordDTO;
import com.liu.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface AdminMapper {
    //根据用户名查找管理员
    Admin findAdmin(String username);
    //新增管理员
    int addAdmin(Admin admin);
    //根据id查找管理员
    Admin queryAdminById(@Param("adminId")int id);
    //修改管理员信息
    int updateAdmin(Admin admin);
    //更新密码
    int updatePwd(PasswordDTO passwordDTO);
}
